export function getCurrentWeekDates() {
  const today = new Date();
  const currentDay = today.getDay();
  const firstDayOfWeek = new Date(today);
  firstDayOfWeek.setDate(today.getDate() - currentDay + 1); // Monday as the first day of the week

  const weekDates = [];
  for (let i = 0; i < 7; i++) {
    const date = new Date(firstDayOfWeek);
    date.setDate(firstDayOfWeek.getDate() + i);
    weekDates.push({
      day: date.getDay(), // day of the week
      date: date.getDate(), // day of the month
      month: date.getMonth() + 1, // month (0-11, so we add 1)
      year: date.getFullYear(), // year
    });
  }
  return weekDates;
}